package priv.dk.springboot.util;

import java.text.SimpleDateFormat;
import java.util.Date;

public class CommonUtil {

    // response code
    public static final int BIZ_ERROR = -1;
    public static final int NO_LOGIN = -2;
    public static final int SQL_ERROR = -3;
    public static final int BIZ_OK = 1;

    // common const
    public static final int EMP_STATUS_ENABLE = 1;
    public static final int EMP_STATUS_DISABLE = 0;


    private final static SimpleDateFormat SIMPLE_DATE_FORMAT = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

    public static String dateFormatString(Date date) {
        return SIMPLE_DATE_FORMAT.format(date);
    }
}
